Class ZipButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JButton
|
+----ZipButton
- public class ZipButton
- extends JButton
This class specialize JButton to change the look
- Version:
- 1.0
- Author:
- Frank Moisant - Patrick Titiano
- See Also:
- AllActionListener
-
enabled
-
-
ZipButton(String, String)
- Constructor of ZipButton
-
isEnabled()
- Return the state of the button
-
setButtonEnabled(boolean)
- Enable the button
enabled
private boolean enabled
ZipButton
public ZipButton(String action,
String iconFileName)
- Constructor of ZipButton
- Parameters:
- action - the action perform by the button, to setCommandAction
- iconFileName - specify the file name of the icon to display in the button
isEnabled
public boolean isEnabled()
- Return the state of the button
- Returns:
- true if enabled
- Overrides:
- isEnabled in class Component
setButtonEnabled
public void setButtonEnabled(boolean flag)
- Enable the button
- Parameters:
- flag - true to enable it